import request from "@/utils/request";
export function insertCoupon(data) {
  return request({
    url: "/coupon/insert",
    method: "post",
    data: data
  });
}
export function updateCoupon(data) {
  return request({
    url: "/coupon/update",
    method: "post",
    data: data
  });
}
export function grantCoupon(data) {
  return request({
    url: "/coupon/grant",
    method: "post",
    data: data
  });
}
export function deleteCoupon(data) {
  return request({
    url: "/coupon/delete",
    method: "post",
    data: data
  });
}
export function deletesCoupon(data) {
  return request({
    url: "/coupon/deletes",
    method: "post",
    data: data
  });
}
export function enableCoupon(data) {
  return request({
    url: "/coupon/enable",
    method: "post",
    data: data
  });
}
export function enablesCoupon(data) {
  return request({
    url: "/coupon/enables",
    method: "post",
    data: data
  });
}
export function disableCoupon(data) {
  return request({
    url: "/coupon/disable",
    method: "post",
    data: data
  });
}
export function disablesCoupon(data) {
  return request({
    url: "/coupon/disables",
    method: "post",
    data: data
  });
}
export function viewCoupon(params) {
  return request({
    url: "/coupon/view",
    method: "get",
    params: params
  });
}
export function pageCoupon(params) {
  return request({
    url: "/coupon/page",
    method: "get",
    params: params
  });
}
export function searchCoupon(params) {
  return request({
    url: "/coupon/search",
    method: "get",
    params: params
  });
}
